package com.uplift.mobile.realty.dao;

import com.uplift.mobile.realty.model.RealtyALModel;
import com.uplift.mobile.realty.model.RealtyLease;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RealtyLeaseMapper {
	public List<Map<String, Object>> selectRealtyLease(RealtyLease realtyLease);

	/**
	 * 新增租约信息
	 * @param realtyLease
	 * @return
	 */
	public int insertRealtyLease(RealtyLease realtyLease);

	/**
	 * 更新租约信息
	 * @param realtyLease
	 * @return
	 */
	public int updateRealtyLease(RealtyLease realtyLease);

	/**
	 * 添加租约广告
	 * @param realtyALModel
	 * @return
	 */
	public int addLeaseAd(RealtyALModel realtyALModel);

	/**
	 * 删除租约广告
	 * @param realtyALModel
	 * @return
	 */
	public int deleteLeaseAd(RealtyALModel realtyALModel);

	public List<Map<String, Object>> selectRealtyLeaseAd(RealtyLease realtyLease);

	public Map<String, Object> countTotalMoney(RealtyLease realtyLease);
}
